package com.wwj.core.wawa.service;

import com.github.pagehelper.Page;
import com.wwj.core.wawa.entity.Room;

import java.util.Map;

/**
 * Created by Administrator on 2017/11/3.
 */
public interface IRoomService {
    Room findById(Integer id);

    Page<Room> findByPage(int offset, int limit);

    Page<Room> findByPage(Map<String,Object> params,int offset, int limit);

    void modifyPlayerNumber(Integer roomId, int increment);

    int createRoom(Room room) throws Exception;

    void updateRoom(Room room);

    int findByWaWaTypeId(Integer id);
}
